
import 'package:flutter/material.dart';
import 'package:getwidget/colors/gf_color.dart';
import 'package:getwidget/components/avatar/gf_avatar.dart';
import 'package:getwidget/components/bottom_sheet/gf_bottom_sheet.dart';
import 'package:getwidget/components/list_tile/gf_list_tile.dart';

class Servicebottomsheet extends StatelessWidget {

    final GFBottomSheetController _controller = GFBottomSheetController();

    Servicebottomsheet({super.key});

    @override
    Widget build(BuildContext context) {
        return Scaffold(
            backgroundColor: Color.fromARGB(100, 10, 10, 10),
            bottomSheet: GFBottomSheet(
                controller: _controller,
                maxContentHeight: 150,
                stickyHeaderHeight: 100,
                enableExpandableContent: true,
                stickyHeader: Container(
                decoration: BoxDecoration(color: Colors.white,
                    boxShadow: [BoxShadow(color: Colors.black45, blurRadius: 0)]
                ),
                child: const GFListTile(
                    avatar: GFAvatar(
                    backgroundImage: AssetImage('assets/icon/nav-fl-004.png'),
                    ),
                    titleText: '应用服务器',
                    subTitleText: '选择应用服务器',
                ),
                ),
                contentBody: Container(
                height: 400,
                margin: EdgeInsets.symmetric(horizontal: 15, vertical: 10),
                child: ListView(
                    shrinkWrap: true,
                    physics: const ScrollPhysics(),
                    children: const [
                    Center(
                        child: Text(
                            'Getwidget reduces your overall app development time to minimum 30% because of its pre-build clean UI widget that you can use in flutter app development. We have spent more than 1000+ hours to build this library to make flutter developer’s life easy.',
                            style: TextStyle(
                                fontSize: 15, wordSpacing: 0.3, letterSpacing: 0.2),
                        ))
                    ],
                ),
                ),
                stickyFooter: Container(
                color: GFColors.SUCCESS,
                child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: [
                    Text(
                        '触摸点击选择',
                        style: TextStyle(
                            fontSize: 18,
                            fontWeight: FontWeight.bold,
                            color: Colors.white),
                    ),
                    Text(
                        '250933400@qq.com',
                        style: TextStyle(fontSize: 15, color: Colors.white),
                    ),
                    ],
                ),
                ),
                stickyFooterHeight: 50,
            ),
        );
    }
}